package com.taichuan.selfcheck.eventbus;

import com.taichuan.serialcommunication.mcuUpdate.base.BaseMcuUpdateClient;

/**
 * 该类主要用于
 *
 * @author CamelLuo
 * @version 2020/5/13
 */
public class McuUpdateProgressEvent {
    private boolean isSendSucess;
    private int currentPackageCount;
    private int totalPackageCount;
    private BaseMcuUpdateClient.McuUpdateState mcuUpdateState;

    public McuUpdateProgressEvent(boolean isSendSucess, int currentPackageCount, int totalPackageCount,BaseMcuUpdateClient.McuUpdateState mcuUpdateState) {
        this.isSendSucess = isSendSucess;
        this.currentPackageCount = currentPackageCount;
        this.totalPackageCount = totalPackageCount;
        this.mcuUpdateState = mcuUpdateState;
    }

    public boolean isSendSucess() {
        return isSendSucess;
    }

    public void setSendSucess(boolean sendSucess) {
        isSendSucess = sendSucess;
    }

    public int getCurrentPackageCount() {
        return currentPackageCount;
    }

    public void setCurrentPackageCount(int currentPackageCount) {
        this.currentPackageCount = currentPackageCount;
    }

    public int getTotalPackageCount() {
        return totalPackageCount;
    }

    public void setTotalPackageCount(int totalPackageCount) {
        this.totalPackageCount = totalPackageCount;
    }

    public BaseMcuUpdateClient.McuUpdateState getMcuUpdateState() {
        return mcuUpdateState;
    }

    public void setMcuUpdateState(BaseMcuUpdateClient.McuUpdateState mcuUpdateState) {
        this.mcuUpdateState = mcuUpdateState;
    }

    @Override
    public String toString() {
        return "McuUpdateProgressEvent{" +
                "isSendSucess=" + isSendSucess +
                ", currentPackageCount=" + currentPackageCount +
                ", totalPackageCount=" + totalPackageCount +
                ", mcuUpdateState=" + mcuUpdateState +
                '}';
    }
}
